package com.traval.user.models;

import java.util.HashSet;
import java.util.Set;

import com.traval.orderANDcart.models.TCart;
import com.traval.orderANDcart.models.TOrder;


/**
 * TUser entity. @author MyEclipse Persistence Tools
 */

public class TUser  implements java.io.Serializable {


    // Fields    

     private Integer uid;
     private TCart TCart;
     private Integer type;
     private String username;
     private String password;
     private String realname;
     private String telephone;
     private String address;
     private String email;
     private Set<TOrder> TOrders = new HashSet<TOrder>();


    // Constructors

    /** default constructor */
    public TUser() {
    }

	/** minimal constructor */
    public TUser(TCart TCart, String username, String password, String realname) {
        this.TCart = TCart;
        this.username = username;
        this.password = password;
        this.realname = realname;
    }
    
    /** full constructor */
    public TUser(TCart TCart, Integer type, String username, String password, String realname, String telephone, String address, String email, Set TOrders) {
        this.TCart = TCart;
        this.type = type;
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.telephone = telephone;
        this.address = address;
        this.email = email;
        this.TOrders = TOrders;
    }

   
    // Property accessors

    public Integer getUid() {
        return this.uid;
    }
    
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public TCart getTCart() {
        return this.TCart;
    }
    
    public void setTCart(TCart TCart) {
        this.TCart = TCart;
    }

    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }

    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return this.realname;
    }
    
    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getTelephone() {
        return this.telephone;
    }
    
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return this.address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }

    public Set getTOrders() {
        return this.TOrders;
    }
    
    public void setTOrders(Set TOrders) {
        this.TOrders = TOrders;
    }
   








}